<template>
  <div class="fragments">
    <headerWrap></headerWrap>
    <transition name="fadeShow"
                v-show="$store.getters.showFlag_get === 1 || $store.getters.showFlag_get === 20">
      <div class="container-wrap">
        <div class="container-y" style="overflow: hidden">
          <switch-tab :tabData="tabData"
                      :switchFlag="switchFlag"
                      @_onclick="switchClick">
          </switch-tab>
          <div class="pull-wrap">
            <div id="pending" class="mescroll" v-show="switchFlag == 0">
              <ul class="data-list-wrap" id="ip">
                <li class="d-item"
                    v-for="(item,index) in pendingList"
                    v-if="pendingList.length"
                    :key="index"
                    @click="go_details(item)">
                  <div class="i-img" :class="item.iconWrapClass">
                    <i class="iconfont" :class="item.iconClass"></i>
                  </div>
                  <div class="i-content">
                    <div class="i-title">
                      {{item.title}}
                    </div>
                    <!--<div class="i-time">-->
                      <!--{{item.dptName}}-->
                    <!--</div>-->
                    <div class="i-time">
                      {{item.time}}
                    </div>
                  </div>
                  <div :class="item.stateClass"></div>
                </li>
              </ul>
            </div>
            <div id="complete" class="mescroll" v-show="switchFlag == 1">
              <ul class="data-list-wrap" id="ic">
                <li class="d-item"
                    v-for="(item,index) in completeList"
                    v-if="completeList.length"
                    :key="index"
                    @click="go_details(item)">
                  <div class="i-img" :class="item.iconWrapClass">
                    <i class="iconfont" :class="item.iconClass"></i>
                  </div>
                  <div class="i-content">
                    <div class="i-title">
                      {{item.title}}
                    </div>
                    <!--<div class="i-time">-->
                      <!--{{item.dptName}}-->
                    <!--</div>-->
                    <div class="i-time">
                      {{item.time}}
                    </div>
                  </div>
                  <div :class="item.completeIcon"></div>
                </li>
              </ul>
              <!--<noDataWrap v-if="!completeList.length"></noDataWrap>-->
            </div>
          </div>
        </div>
      </div>
    </transition>
    <transition name="slideRight">
      <router-view></router-view>
    </transition>
  </div>
</template>

<script>
  import indexList from "./indexList.js"
  export default indexList
</script>
